<?php namespace Zm345\Com\Component\SiteBuildC;use Zmsun\Service\ServiceManager\ServiceManager;use Zmsun\Component\Component;class QueryServ{protected$serviceManager;protected$component;public function __construct(ServiceManager$serviceMgr,Component$component){$this->serviceManager=$serviceMgr;$this->component=$component;}public function __call($name,$params){$classes=[__NAMESPACE__.'\\Member\\Query\\'.ucfirst($name),];$fullName=null;foreach($classes as$tempFullName){if(class_exists($tempFullName)){$fullName=$tempFullName;}}if(!$fullName||!is_a($fullName,__NAMESPACE__.'\ADataQuery',true)){trigger_error('Call to undefined method '.__CLASS__.'::'.$name.'()',E_USER_ERROR);}return$this->component->getManager()->$name();}}?>